package net.neptech.enums.workflow;

import lombok.Getter;

import java.util.Arrays;


@Getter
public enum ApproveResultEnum {
    PASS( "同意",1),
    REFUSE( "拒绝",2),
    CANCEL( "撤销",3),
    ;
    public static ApproveResultEnum get(int code){
        return Arrays.stream(ApproveResultEnum.values()).filter(w->w.getValue()==code).findAny().get();
    }
    ApproveResultEnum(String label, int value) {
        this.label = label;
        this.value = value;
    }
    private String label;
    private Integer value;
}
